package com.hskn.hss.module.tlparktreeexp.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author hskn
 * @since 2021-05-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class TlParkTreeExp implements Serializable {

    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    /**
     * 主要树种
     */
    private String maintree;

    /**
     * 数量
     */
    private Integer treenum;

    /**
     * 树龄
     */
    private String treeage;

    /**
     * 规格
     */
    private String specs;

    /**
     * 主表id
     */
    private String maintbid;

    /**
     * 树种Id
     */
    private String treeSeedId;
    /**
     * 标识
     */
    @TableField(exist = false)
    private String iconid;
    /**
     * 规格
     */
    @TableField(exist = false)
    private Integer specsInteger;
    /**
     * 规格
     */
    @TableField(exist = false)
    private String specsName;

    public Integer getSpecsInteger() {
        return Integer.valueOf(specs);
    }
}
